// 全局引入的文件
import { createApp } from "vue";

// 通过配置项 引入全局css
import "./assets/css/reset.css";

// 官网==>
import ElementPlus from "element-plus";
import locale from "element-plus/lib/locale/lang/zh-cn";
import "element-plus/dist/index.css";
// 自定义icon组件
import Icons from "@/components/Icons.vue";
import App from "./App.vue";
import router from "./router";
import axios from "./utils/axios";
import VWave from "v-wave";
import qs from "qs";
import oss from "./utils/oss"; /* 上传文件 */
import { setupStore } from "@/stores/index.js"; // pinia

const app = createApp(App);

setupStore(app);

app.use(VWave);

app.config.globalProperties.$axios = axios;
app.config.globalProperties.$qs = qs;
app.config.globalProperties.$oss = oss;

// 全部加载
// app.use(ElementPlus);
app.use(ElementPlus, { locale });

// 全局注册 自定义Icons
app.component("Icons", Icons);

// 挂载
// app.use(router).use(store);
app.use(router);

// 渲染
app.mount("#app");
